var database;

module.exports = {
    init: async (options) => {
        database = await require('./entities')(options);
    },
    get db() {
        return database;
    },
    functions: {
        hyposenUser: require('./misc/hyposenUser'),
        peekLastfixByMediaType: require('./misc/peekLastfixByMediaType'),
    }
}